package map05;

public class Student {
    private String name; // 姓名
    private String sno;  // 学号

    public Student( String sno,String name) {
        this.name = name;
        this.sno = sno;
    }

    public String getName() {return name;}
    public void setName(String name) {this.name = name;}
    public String getSno() {return sno;}
    public void setSno(String sno) {this.sno = sno;}

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", sno='" + sno + '\'' +
                '}';
    }
}

